package com.tanhua.dubbo.api;


import com.tanhua.model.enums.CommentType;
import com.tanhua.model.mongo.Comment;

import java.util.List;


public interface CommentsApi {

    /*圈子-发布评论/点赞/喜欢*/
    Integer save(Comment comment);

    /*圈子-评论列表*/
    List<Comment> findComments(String movementId, CommentType commentType, Integer page, Integer pagesize);

    /*判断用户是否已点赞/喜欢*/
    Boolean hasComment(Long userId, String movementId, CommentType like);

    /*圈子-删除点赞*/
    Integer delete(Comment comment);

    /*查询点赞信息*/
    List<Comment> findById(Long userId,Integer page, Integer pagesize,int commentType);
}
